import Vue from 'vue'
import Vuex from 'vuex'
import category from "@/store/modules/category";
import search from "@/store/modules/search";
import user from "@/store/modules/user";

// 应用 Vuex（数据管理的仓库）插件
Vue.use(Vuex);

// 创建仓库
const store = new Vuex.Store({
	modules: {
		category,
		search,
		user
	}
})

// 暴露出去（注入）
export default store